package felix.rule.engine;

import felix.rule.service.impl.install.RuleEngineInstallService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 数据库初始化
 */
@SpringBootApplication
public class RuleEngineInstaller {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(RuleEngineInstaller.class);
        application.setAdditionalProfiles("install");
        ConfigurableApplicationContext context = application.run(args);
        context.getBean(RuleEngineInstallService.class).performInstall();
    }

}
